﻿using System.Collections.Generic;
using System.ComponentModel;
using SolarWinds.Logic;

namespace SolarWinds.Data
{
    public enum ShipType
    {
        Scout,
        Rouge,
        Bomber,
        Destroyer,
        Battleship
    }

    public class ShipData
    {
        #region Properties

        public string Name { get; set; }
        public ShipType ShipType { get; set; }
        public string Description { get; set; }
        public int Energy { get; set; }
        public int Shield { get; set; }
        public int Armor { get; set; }
        public int MaxSpeed { get; set; }
        public float Agility { get; set; }
        public float Mass { get; set; }

        private readonly CargoBay mCargoBay = new CargoBay();        //Frachtraum

        [TypeConverter(typeof(ExpandableObjectConverter))]
        public CargoBay CargoBay
        {
            get { return mCargoBay; }
        }

        //public ArrayList CargoList = new ArrayList();
        //public ArrayList mWeaponBays = new ArrayList();

        private readonly List<WeaponBay> mWeaponBays = new List<WeaponBay>(); //Waffenplätze

        [TypeConverter(typeof(ExpandableObjectConverter))]
        public List<WeaponBay> WeaponBays
        {
            get { return mWeaponBays; }
        }

        #endregion
    }

    public class WeaponBayList : List<WeaponBay>
    {
    }
}
